import React from "react"
import { Route, Switch } from "react-router-dom"

import Home from "../containers/Home"
import NotFound from "../containers/NotFound"

export default class SubRouter extends React.Component {
  render() {
    return (
      <Switch>
        <Route exact path="/" component={ Home }></Route>
        <Route component={ NotFound }></Route>
      </Switch>
    )
  }
}
